﻿#pragma once
// Copyright (c) lanyeo 2020-2021
// Licenced under MIT license. See https://opensource.org/licenses/MIT for details.
// code style
// 1. use forward declaration (尽可能使用前置声明)
// 2. include file sequence [other project>c>c++>third>self project]
// 

#include <core/manager.h>

#include <cppcoro/task.hpp>

struct TaskConf;

using Task = std::function<cppcoro::task<>()>;    //定义类型
class ITaskManager : public IManager
{
public:
    virtual int PushTask(Task&& task) = 0;
    virtual int PushNetworkTask(Task&& task) = 0;
    virtual const TaskConf* conf() = 0;
};

